home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gekikoh Dennoh Club 7
/
Gekikoh Dennoh Club Vol. 7 (Japan).7z
/
Gekikoh Dennoh Club Vol. 7 (Japan) (Track 01).bin
/
ikap
/
graphic1
/
obj_18
/
demo1.bas
< prev
next >
Wrap
BASIC Source File
|
1999-06-15
|
1KB
|
61 lines
/*==== -: "OBJ_18.SP" カンイ デモ プログラム :- ====
int i,j,pl
int anm_flg,anm_flg2
int palet_block=0,plb
char kyc
float pi_=pi()*2
int px,py,nx,chr_no
/*==== -: screen init. :- ====
screen 0,2,1,1 : window( 0, 0,511,511)
vpage(&B01) : apage(&B00)
sp_init() : sp_disp(1)
spfile_def("OBJ_18.SP",0)
palfile_def("OBJ_18.PAL",1)
for i=0 to 15
palet(i,sp_color(i,,1+palet_block))
fill(i*8,16, i*8+6,22,i)
next
/*==== -: main demo :- ====
while 1
kyc=asc(inkey$(0))
if kyc = &H1B then break
if kyc = &H20 then {
palet_block=palet_block+1
if palet_block = 14 then palet_block=0
locate 0,0 : print using "P.B.:##";palet_block+1
for i=0 to 15
palet(i,sp_color(i,,1+palet_block))
/* fill(i*8,32,i*8+6,38,i)
next
plb=palet_block shl 8
}
anm_flg=anm_flg+1 and 7
anm_flg2=anm_flg2+1 and 15
nx=nx+1 and 255
if nx = 0 then {
chr_no=chr_no+1
if chr_no = 10 then chr_no=0
}
px=264-nx
py=224-sin(pi_*nx/96)*32
v_disp()
sp_set( 64,px,py,&H108+plb+(anm_flg2 shr 1)+(chr_no shl 4),3)
for i=0 to 9
sp_set( i, 24+i*24, 64,&H100+plb+anm_flg+(i shl 4),3)
sp_set(16+i, 24+i*24, 96,&H108+plb+anm_flg+(i shl 4),3)
next
v_disp()
for i=0 to 9
sp_set(32+i, 24+i*24,128,&H100+plb+(anm_flg2 shr 1)+(i shl 4),3)
sp_set(48+i, 24+i*24,160,&H108+plb+(anm_flg2 shr 1)+(i shl 4),3)
next
endwhile